import request from '@/utils/request'

/**
 * app版本控制
 */
export function businessEnteringList(params) {
  return request({
    url: '/server/business/businessEnteringList',
    method: 'get',
    data: params
  })
}
/**
 * 商家入駐-審核通過
 */
export function batchCheck(params) {
  return request({
    url: '/server/business/batchPass',
    method: 'post',
    data: params
  })
}
/**
 * 商家入駐-審核通過
 */
export function batchReject(params) {
  return request({
    url: '/server/business/batchReject',
    method: 'post',
    data: params
  })
}
/**
 * 新增商家，所属Bd
 */
export function businessDevelopment(params) {
  return request({
    url: '/server/businessDevelopment/select',
    method: 'GET',
    data: params
  })
}
/**
 * 商家品类列表
 */
export function businessTypeList(params) {
  return request({
    url: '/server/businessType/select',
    method: 'GET',
    data: params
  })
}
/**
 * 商家列表
 */
export function businessList(params) {
  return request({
    url: '/server/business/businessList',
    method: 'GET',
    data: params
  })
}
/**
 * 代理商详情
 */
export function agentInfo(params) {
  return request({
    url: '/server/agent/info',
    method: 'GET',
    data: params
  })
}
/**
 * 设置商家强制排序
 */
export function setSort(params) {
  return request({
    url: '/server/business/setSort',
    method: 'POST',
    data: params,
    isFromData: 'true'
  })
}
/**
 * 取消商家强制排序
 */
export function resetSort(params) {
  return request({
    url: '/server/business/resetSort',
    method: 'POST',
    data: params,
    isFromData: 'true'
  })
}
